﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace AESHiringClient
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                name: "WelcomeController",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Welcome", action = "Index", id = UrlParameter.Optional }
            );

            routes.MapRoute(
                name: "RegisterController",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Register", action = "Register", id = UrlParameter.Optional }
            );

            routes.MapRoute(
                name: "RegisterPreviewController",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "RegisterPreview", action = "RegisterPreview", id = UrlParameter.Optional }
             );

            routes.MapRoute(
                name: "StaffingExpertMenuController",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "StaffingExpertMenu", action = "StaffingExpertMainMenu", id = " " }
             );

            routes.MapRoute(
                name: "ApplicantMainMenuController",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "ApplicantMainMenu", action = "MainMenu", id = UrlParameter.Optional }
            );

            routes.MapRoute(
                name: "ApplicantApplyController",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "ApplicantApply", action = "NextQuestion", id = UrlParameter.Optional }
            );

            routes.MapRoute(
                name: "ErrorController",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Error", action = "Error", id = UrlParameter.Optional }
            );
        }
    }
}